<?php
include_once '../../lib/config.php';
include_once '../../lib/db.php';
include '../../lib/utils/date.php';
include '../../lib/utils/tag.php';
include '../../model/rangking.php';
include '../../model/karyawan.php';
include '../../model/perbuatan.php';

$proc = $_REQUEST['proc'];

switch ($proc):
case 'rank-table':
	$startPeriode = date("Y-m-d", $_REQUEST['startPeriode']);
	$endPeriode = date("Y-m-d", $_REQUEST['endPeriode']);
	$orderby = $_REQUEST['orderby'];
	if (!$orderby) $orderby = "RANK_RANGKING";
	include '../../view/admin/ranking/tablelist.php';
	break;

case 'rank-detail':
	$karyID = $_REQUEST['karyID'];
	$periode = date("Y-m-d", $_REQUEST['periode']);
	$periode2 = $_REQUEST['periode'];
	include '../../view/admin/ranking/detail.php';
	
break;
	
endswitch;